{extend name="layout"}
{block name="body"}
<section class="wld-content">
    <div class="page_title">服务套餐</div>
    <div class="con_box layui-form">
        <div class="goods-con">
            {foreach $goods as $k=>$v}

            <div class="goods-type ">
                <div class="goods-type-con">
                    <img src="{$v['image_list']|default='__ROOT__/static/index/img/jcfw.png'}">
                    <span class="goods-line"></span>
                    <p class="goods-title">
                        <span class="goods-spot-num">{$v['cost']}</span>
                        <span class="goods-spot">点</span>
                        / {$v['name']}
                    </p>
                    <div class="goods-server">
                        {foreach $v['goods_detail'] as $key=>$item}
                        <p class="{if($key < 2)}on{/if}">
                            <span>{$item['service']['title']}</span>
                            <span>{$item['time']}次</span></p>
                        {/foreach}
                        <p class="on-more {if(count($v['goods_detail']) > 2)}on{/if}">...</p>
                        <p class="goods-server-more {if(count($v['goods_detail']) > 2)}on{/if}">查看全部服务>></p>
                    </div>


                    <a class="goods-btn goods-type-1" href='{:url("index/goods/detail")}?id={$v["id"]} '>立即购买</a>
                </div>
            </div>
            {/foreach}

        </div>
      
      </div>
  
</section>
{/block}
{block name="script"}
<script>
    
</script>
<style>
    .con_box{
        background: #e7f7f9;
    }
</style>
{/block}